#include <REGX52.H>
#include "LCD.h"
#include "sr04.h"
#include "key.h"
#include "motor.h"

void main()
{
    lcd_initial();
    InitTimer0();
    string(0x8e, "30");
    while (1)
    {
        show_sr04();
        if (dis <= 30)
            key();
    }
}
